package collections

// 最顶层接口
type Collection interface {
	Size() int

	IsEmpty() bool

	Contains(data interface{}) bool

	ToArray() []interface{}

	Add(data interface{}) bool

	Remove(data interface{}) (bool, error)

	AddAll(data []interface{}) bool

	Clear()
}
